package com.blue.firecat.serivce;

import com.blue.firecat.contants.Result;
import com.blue.firecat.dto.TradeStatusDto;
import com.blue.firecat.entity.Order;
import com.blue.firecat.entity.OrderExample;
import com.blue.firecat.entity.User;
import com.blue.firecat.vo.OrderVo;

import java.util.List;
import java.util.Map;

/**
 * @描述
 * @时间 2017/6/22 22:24
 * @作者 肖亦鸣
 */
public interface OrderService {

    void countByExample(OrderExample example);

    Result<Order> insertSelective(Order record, User user)throws Exception;

    Result<Order> selectByPrimaryKey(Long id, User user);

    Result<Order> updateByPrimaryKeySelective(Order order, User user);

    Result<List<Order>> selectByExample(OrderVo orderVo, User user);

    Result<Order> deleteByPrimaryKey(OrderVo orderVo, User user);

    Result<Map<Integer, String>> getOrderType();

    Result<Order> selectByPrimaryKey(Long orderId);

    void setExpired();

    Result<Map<String, Integer>> countByExample(User user);

    Object count();
}
